package com.team.ai.controller;

import com.team.ai.entity.ResultEntity;
import com.team.ai.service.CategoryService;
import com.team.ai.service.PaperService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@CrossOrigin//跨域
@RestController//遵循RestFul
@RequestMapping("v2/Category/")
public class CategoryController {
    @Resource
    CategoryService categoryService;
    @PostMapping("Category")
    public String getCategory(
            @RequestParam(value = "category") String category) {
        return categoryService.selectCategory(category);
    }
}
